define([ "jquery" ], function(jq) {

  jq.session = function(key, value) {
    if (arguments.length == 2) {
      session.setItem(key, JSON.stringify(value));
    } else {
      return JSON.parse(session.getItem(key));
    }
  };

  jq.storage = function(key, value) {
    if (arguments.length == 2) {
      storage.setItem(key, JSON.stringify(value));
    } else {
      return JSON.parse(storage.getItem(key));
    }
  };

});